package com.ithinks.flow.common.utils.protocol.netty.serializable.msgpack;

import org.msgpack.annotation.Message;

/**
 * @Description
 * @ClassName UserContact
 * @Author MR.LI
 * @date 2020.12.09 18:09
 */
//MessagePack提供的注解，表明这是一个需要序列化的实体类
@Message
public class UserContact {
    private String mail;
    private String phone;

    public UserContact(){
    }

    public UserContact(String mail,String phone){
        this.mail = mail;
        this.phone = phone;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "UserContact{" +
                "mail='" + mail + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
